package com.zcx.test.common.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhaochangxin
 * @date 2022/3/8 10:47
 * Page类 分页
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Page {
    // 几页
    private Integer page;
    // 一页多少个
    private Integer limit;
    public Long getStart(){
        return (this.page-1L)*limit;
    }
}
